package cn.wolfcode.wolf2w.query;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class TravelQuery extends QueryObject {

    public static final int ORDER_NEW = 1;
    public static final int ORDER_HOT = 2;

    private String destId;

    private int dayType = -1; // 旅游天数

    private int perExpendType = -1; // 人均消费

    private int orderType = -1; // 排序柜子

    // 返回查询 天数范围
    public TravelCondition getDay() {
        return TravelCondition.DAY_MAP.get(dayType);
    }

    public TravelCondition getPerExpend() {
        return TravelCondition.PEREXPEND_MAP.get(perExpendType);
    }

}
